package br.com.portal.factory;

import java.sql.Connection;
import java.sql.SQLException;

public class ConnectionFactory {
	
	private static void registraDriverJdbc() {
		try {
			Class.forName("org.postgresql.Driver");
		} catch (ClassNotFoundException ex) {
			ex.printStackTrace();
			System.exit(1);
		}
	}

	public static Connection getConnection() throws Exception {
		Connection conn = null;
		conn =  Conexao.getConnection();

		return conn;
	}
}